﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VerficationsWPF.Models
{
    public class InfoAttribute : Attribute
    {
        /// <summary>
        /// 表明类的显示状态。
        /// </summary>
        /// <param name="importance">值越高，显示越先前，默认值-1。</param>
        /// <param name="isDisplayed">是否在主界面中显示，默认值为0。</param>
        public InfoAttribute(int importance = -1, bool isDisplayed = false)
        {
            Importance = importance;
            IsDisplayed = isDisplayed;
        }

        /// <summary>
        /// 值越高，显示越先前，默认值-1。
        /// </summary>
        public int Importance { get; set; } = -1;

        /// <summary>
        /// 是否在主界面显示。
        /// </summary>
        public bool IsDisplayed{ get; set; } = false;
    }
}
